package com.farm.feign;

import com.farm.entity.Result;
import com.farm.opjo.Index;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "Crops")
public interface IndexFeign {
    @GetMapping("/index/findById/{id}")
    public Result<Index> findById(@PathVariable("id") Integer id);
}
